import pose_recognition as pr
# from Celery_app import celery

# @celery.task
def startcode(videoInput, sideInput, heightInput):
    video_path = videoInput  # 替换为你的视频路径
    side = sideInput
    height_real = heightInput


    detector = pr.PoseDetector(video_path,height_real,side)
    # 启动动画
    success = detector.start_animation()
    print(000)
    if success is None:
        print(111)
        return None
    return None


# @celery.task
def startcode_two(videoInput, sideInput, heightInput):
    video_path = videoInput  # 替换为你的视频路径
    side = sideInput
    height_real = heightInput


    detector = pr.PoseDetector(video_path,height_real,side)
    # 启动动画
    detector.start_animation()
    return None